<template>
    <el-empty :image="notfound" description="页面未找到" :image-size="500">
        <el-button type="primary" @click="toLogin">回到登录页</el-button>
    </el-empty>
</template>

<script  setup>
import {useRouter} from 'vue-router'
import notfound from '@/assets/notfound.png'
import {getToken} from '@/utils/token'

const router = useRouter()
const toLogin = () => {
    getToken() ? router.push("/xfjc/index") : router.push("/")
} 
</script>

<style lang="lcss" scoped>

</style>